
import request from '@/plugin/axios'

// 获取列表
export function getsecretlist (params) {
  return request({
    url: '/bdms/secret/list',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取信息
export function getsecretinfo (id) {
  return request({
    url: '/bdms/secret/info/' + id,
    method: 'get',
    params: request.adornParams({})
  })
}

// 添加
export function addsecret (data) {
  return request({
    url: '/bdms/secret/save',
    method: 'post',
    data
  })
}

// 修改
export function updatesecret (data) {
  return request({
    url: '/bdms/secret/update',
    method: 'put',
    data
  })
}

// 批量删除
export function delBatchsecret (params) {
  return request({
    url: '/bdms/secret/delete',
    method: 'delete',
    data: request.adornData(params, false)
  })
}

// 删除
export function delsecret(id) {
  return request({
    url: '/bdms/secret/delete/' + id,
    method: 'delete',
  })
}